package com.platform.enums;

import com.platform.comm.enums.IDictEntry;
import com.platform.comm.enums.IEnumItem;

/**
 * 业务类型
 *
 * @author qijunyu
 */
public enum ServiceType implements IDictEntry, IEnumItem {

    /**
     * 我的采集
     */
    gather("serviceType", "我的采集"),


    repair("repair", "信用修复"),

    department("department", "归属部门"),

    complain("complain", "异议申诉"),

    other("other", "其他");

    public final String code;
    public final String title;

    ServiceType(String code, String title) {
        this.code = code;
        this.title = title;
    }

    @Override
    public boolean is(String iCode) {
        return code.equals(iCode);
    }

    @Override
    public String getKey() {
        return code;
    }

    @Override
    public String getValue() {
        return title;
    }

    @Override
    public Object getData() {
        return this;
    }

}
